<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>青春花语--登录</title>
    <link rel="stylesheet" href="../CSS/login.css">
    <link rel="stylesheet" href="../CSS/public.css">
    <script src="../js/login.js"></script>
</head>

<body>
    <!-- 头部导航 -->
    <div class="top-nav">
        <ul>
            <li><a href="../index.html"><span>|</span>青春花语首页<span>|</span></a></li>
            <li><a href="../HTML/shopping_mall.html"><span>|</span>商城<span>|</span></a>
            </li>
            <li><a href="../HTML/collect.html"><span>|</span>商品收藏<span>|</span></a>
            </li>
            <li><a href="../HTML/contact.html"><span>|</span>联系客服<span>|</span></a>
            </li>
            <li><a href="../HTML/login.html"><span>|</span>欢迎登录青春花语<span>|</span></a>
            </li>
            <li><a href="../HTML/register.html"><span>|</span>免费注册<span>|</span></a>
            </li>
            <li><a href="../HTML/person.html"><span>|</span>个人资料<span>|</span></a>
            </li>
            <li><a href="../HTML/my_order.html"><span>|</span>我的订单<span>|</span></a>
            </li>
        </ul>
    </div>
    <!-- 用户登录 -->
    <div class="form-container">
        <div class="form-header">
            <h2>用户登录</h2>
        </div>
        <form id="loginForm" method="post">
            <label for="phone">手机号码：</label>
            <input type="text" id="phone" name="phone" onfocus="clearError()" onblur="validatePhone()">
            <span id="phoneError" class="error"></span>
            <label for="password">密码：</label><br>
            <input type="password" id="password" name="password" required><br>
            <!-- <input type="submit" value=""> --><button class="btn">登录</button>
        </form>
        <div class="form-footer">
            <a href="../HTML/register.html" class="register-link">没有账号？注册</a>
        </div>
    </div>
</body>

</html>